home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / INIT.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  637b  |  33 lines

  1. #ifndef _ASMARM_INIT_H
  2. #define _ASMARM_INIT_H
  3.  
  4. #include <linux/config.h>
  5.  
  6. /* C routines */
  7.  
  8. #ifdef CONFIG_TEXT_INIT_SECTION
  9.  
  10. #define __init __attribute__ ((__section__ (".text.init")))
  11. #define __initfunc(__arginit) \
  12.     __arginit __init; \
  13.     __arginit
  14.  
  15. #else
  16.  
  17. #define __init
  18. #define __initfunc(__arginit) __arginit
  19.  
  20. #endif
  21.  
  22. #define __initdata __attribute__ ((__section__ (".data.init")))
  23.  
  24. /* Assembly routines */
  25. #define __INIT        .section    ".text.init",@alloc,@execinstr
  26. #define __INITDATA    .section    ".data.init",@alloc,@write
  27. #define __FINIT    .previous
  28.  
  29. #define __cacheline_aligned __attribute__ \
  30.              ((__aligned__ (L1_CACHE_BYTES)))
  31.  
  32. #endif
  33.